2<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>
<%--
  Created by IntelliJ IDEA.
  User: 小政专属
  Date: 2020/12/28
  Time: 10:17
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<table border="1">
    <c:forEach items="${pageUtil.lists}" var="u">
        <tr>
            <td>${u.getId()}</td>
            <td>${u.getDevCode()}</td>
            <td>${u.getDevName()}</td>
            <td>${u.getDevPassword()}</td>
            <td>${u.getDevEmail()}</td>
            <td>${u.getDevInfo()}</td>
            <td>${u.getCreatedBy()}</td>
            <td>${u.getCreationDate()}</td>
            <%--<td><fmt:formatDate value="${u.getCreationDate()}" pattern="yyyy-MM-dd"/></td>--%>
            <td>${u.getModifyBy()}</td>
            <td>${u.getModifyDate()}</td>
            <td>
                <a href="${pageContext.request.contextPath}/login/del/${u.getId()}">删除 </a>
                <a href="${pageContext.request.contextPath}/login/getAllById/${u.getId()}">修改 </a>
                <a href="${pageContext.request.contextPath}/login/add.do">添加 </a>
            </td>
        </tr>
    </c:forEach>
</table>
当前页[${pageUtil.pageindex}/${pageUtil.pagecount}]
<c:if test="${pageUtil.pageindex>1}">
    <a href="${pageContext.request.contextPath}/login/getPage?pageIndex=1">首页</a>
    <a href="${pageContext.request.contextPath}/login/getPage?pageIndex=${pageUtil.pageindex-1}">上一页</a>
</c:if>
<c:if test="${pageUtil.pageindex<pageUtil.pagecount}">
    <a href="${pageContext.request.contextPath}/login/getPage?pageIndex=${pageUtil.pageindex+1}">下一页</a>
    <a href="${pageContext.request.contextPath}/login/getPage?pageIndex=${pageUtil.pagecount}">尾页</a>
</c:if>
</body>
</html>
